package com.ssm.base.exception;

import org.springframework.dao.DataAccessException;

/**
 * Created by YueXiao on 2016/7/7.
 */

/**
 * 业务异常
 */
public class BusinessException extends DataAccessException{

    private int code = -9999;
    public BusinessException(String msg) {
        super(msg);

    }
    public BusinessException(int code,String msg) {
        super(msg);
        this.code = code;
    }

    public BusinessException(int code,String msg, Throwable cause) {
        super(msg, cause);
        this.code = code;
    }

    public int getCode() {
        return code;
    }
}
